import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import path from 'node:path'
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react(), viteStaticCopy({
        targets: [
            {
                src: 'src/utool/*',
                dest: path.resolve(__dirname, './dist')
            }
        ]
    })],
    base: './',

})
